Latest Questions

Make child elements active

I have a code that can be used to filter cars by country of manufacture. The code is structured like this: I put the name of the country with a checkbox in the

React + gRPC don't reach envoy container

I was trying to build a very basic web page in React that would send gRPC request to a backend written in Rust. I followed these guides: https://daily.dev/blog/

Does a QUIC server generate a Connection ID or just the client?

Does a QUIC server generate a Connection ID or just the client? Some people say there's a source CID and a destination CID, others say there is only one CID pe

How to sovle Query Issue throwing MySql.Data.MySqlClient.MySqlException

I am doing a project with C# and I have this error: MySql.Data.MySqlClient.MySqlException (0x80004005): You have an error in your SQL syntax; check the manual

Android Studio shortcut keys for windows, linux and mac

Android Studio shortcut key for Windows, Linux and Mac. For example in windows: Run -> Shift + F10 Debug -> Shift + F9 Any others similar to this? What ar

If / Else in HTML within a return of PHP function

I am trying to use an if/else statement within an HTML structure of a return in a PHP function: function price_vat() { global $product; $condition = $pr

How to scan a table in DynamoDB with time period?

I have a table in DynamoDB and it has an attribute 'createDate' and I want to do a scan using a filter in a specific period of that attribute (for example: 2022

MethodError: no method matching setindex! when using DifferentialEquations.jl

I am trying to simulate a multi-dimensional SDE with non-diagonal noise using the DifferentialEquations package in julia. The drift function has the following f

Error in executing YOLO .txt annotations to .csv converter

I'm having trouble executing this file. Given that I'm working on a multi-class classification, each .txt file has several lines addressing each object in every

Xamarin System.ObjectDisposedException: 'Cannot access a closed Stream.'

I'm working on a mobile project with Xamarin Forms and I have this error in particulary case but, it's impossible to use the debuger to fix it. System.ObjectDis

Active Admin login not working (Devise + ActiveAdmin + Devise JWT)

I'm using rails in API mode, with Devise and Devise JWT (for the API), and ActiveAdmin. I had everything working but I've been building out the API controllers

How to check if a string passed as argument is a modifiable string

The question is pretty much in the title. The code void modify_str(char* str){ if(strlen(str) > 5) { str[5] = 'x'; } } Will invoke undef

react-native android project not found error

I am trying to create a react-native project using react-native cli. Command I used to create project npx react-native init test After this if I try to run this

Flutter: Understanding human language

this might be a bit of a unusual question. I have implemented voice input in my application and I need some kind of mechanism that will understand the semantics

Azure Functions error - establishing connection failed

I have Azure Data Factory, which calls Azure Durable Functions. I had success working connection until Terraform did some unknown changes. Where the issue could

Found non-empty schema(s) "public" but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table

I know this has been asked previously but I am spinning in circles here.... I have a postgres 14 database and a Springboot application running flyway-db:7.13.0

How can i find selected area in photo using OpenCV?

I need to detect a selected area in a photo: Original photo: I used this code: import cv2 as cv import numpy as np img = cv.imread(cv.samples.findFile('./Pict

WIX Installer: ensure successive Version numbers on build

I'm trying to automate my Wix installer builds with my Visual Studio Builds. I am grabbing the application's Application Version via this in my installer.wicpro

Given a list of n integers arr[0..(n-1)], determine the number of different pairs of elements within it which sum to k

I'm tackling this problem and I can't seem to arrive at the correct solution. The question is: "Given a list of n integers arr[0..(n-1)], determine the number

test class for handler trigger is not covered

I did a trigger on content version ,but my handler class is not covered ,can you please explain to me why ? please find below the code and screenshots for non c

hyperscript equvelant of jquery .on("click"

$( document ).ready(function() { console.log( "ready!" ); var counter = 0; $("button").click(function() { e="<p class='test' _=\"on

Return Result<Box<dyn Trait>> in a match

I have a set of types that implements a given trait, I want to get a concrete type object from a string name, strangely it works when my match returns Box<dy

Reading comma-separated words from a file

FILE* inp; inp = fopen("wordlist.txt","r"); //filename of your data file char arr[100][5]; //max word length 5 int i = 0; while(1){ char r

Dependent dropdown using WHERE clause

I am looking for some help. I need to create a dependent dropdown based on the previous input. Everything works in my code, and it sends and receives data from

Difference between HttpContext.TraceIdentifier and Activity.Current.Id

I use a "trace id" in logs. Advice on the aspnet repo and here on SO is to get a traceid from HttpContext.TraceIdentifier. But when the framework creates a Prob

Printing a matrix in spiral order but getting an additional element

#include<bits/stdc++.h> using namespace std; // Printing a matrix in spiral Order int main() { int n, m; cin>>n>>m; int arr[n][

How to generate correct Fragment identifier in Jekyll/Kramdown?

I'am using Jekyll with the Minimal Mistakes template and facing a problem with the fragment header generation. Here is an example.. If you put a header into you

I was trying to solve "Grid unique path" using Dynamic programming in Java

I am trying to implement a solution for grid unique path using D.P. approach while trying to do so, I don't know why in the middle of execution the value at (0,

can we mock method inside object

object Abc { method1(param1,param2):Future[Option[String]] = { //some work } } We are using method1 somewhere and need to stub method1 how can

BitBucket: You are using an account password for Git over HTTPS

Today I got the following message when I used Git + BitBucket on MacOS while pushing a new branch to BitBucket. You are using an account password for Git over H